/***************************************************************
*                            NanoRK CONFIG                     *
***************************************************************/

#ifndef __nrk_cfg_h	
#define __nrk_cfg_h

// NRK_REPORT_ERRORS will cause the kernel to print out information about
// missed deadlines or reserve violations
#define NRK_REPORT_ERRORS
// NRK_HALT_ON_ERRORS will cause the kernel to freeze on errors so that
// it is easier to see debugging messages.
//#define NRK_HALT_ON_ERROR
#define NRK_HALT_AND_LOOP_ON_ERROR

// NRK_STACK_CHECK adds a little check to see if the bottom of the stack
// has been over written on all suspend calls
#define NRK_STACK_CHECK

// Leave NRK_NO_POWER_DOWN define in if the target can not wake up from sleep 
// because it has no asynchronously clocked
//#define NRK_NO_POWER_DOWN
#define NRK_NO_BOUNDED_CONTEXT_SWAP

// This protects radio access to allow for multiple devices accessing
// the radio
#define RADIO_PRIORITY_CEILING		10

// Enable buffered and signal controlled serial RX
#define NRK_UART_BUF   1

#define NRK_STATS_TRACKER


// Max number of tasks in your application
// Be sure to include the idle task
// Making this the correct size will save on BSS memory which
// is both RAM and ROM...
#define NRK_MAX_TASKS       		6
                           
// normal
    #define NRK_TASK_IDLE_STK_SIZE         768  // Idle task stack size min=32 
    #define NRK_APP_STACKSIZE              512
    #define NRK_KERNEL_STACKSIZE           512

// needed for treesched
    //#define NRK_TASK_IDLE_STK_SIZE         2048   // Idle task stack size min=32 
    //#define NRK_APP_STACKSIZE              128
    //#define NRK_KERNEL_STACKSIZE           2048 

#define NRK_MAX_RESOURCE_CNT           3

// Define ALL signals below
#define NRK_MAX_RESERVES	0

// see all errors
//#define NRK_KERNEL_TEST

#define IGNORE_EXT_RST_ERROR
#define IGNORE_BROWN_OUT_ERROR


#endif
